package com.bsoft.gol.hcs.enumcase;

/**
 * @author hekr12689
 * @description
 * @date 2022/6/9.17:45
 */
public enum FollowPlanEnum {
    /**已生成随访计划*/
    GENERATED("1", "已生成随访计划"),
    /**未生成随访计划*/
    NOT_GENERATED("0", "未生成随访计划");

    private final String type;

    private final String name;

    FollowPlanEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public static FollowTypeEnum getEnumByKey(String type) {
        for (FollowTypeEnum temp : FollowTypeEnum.values()) {
            if (temp.getType().equals(type)) {
                return temp;
            }
        }
        return null;
    }

    public String getType() {
        return type;
    }

    public String getName() {
        return name;
    }
}
